package zzr.library.db.common;

import androidx.room.Database;
import androidx.room.RoomDatabase;
import androidx.room.TypeConverters;

import zzr.library.db.dao.BookDAO;
import zzr.library.db.dao.BorrowDAO;
import zzr.library.db.dao.ReaderDAO;
import zzr.library.db.obj.BookDO;
import zzr.library.db.obj.BorrowDO;
import zzr.library.db.obj.ReaderDO;


@Database(entities = {ReaderDO.class, BookDO.class, BorrowDO.class}, version = 2, exportSchema = true)
@TypeConverters({Converters.class})
public abstract class AppDatabase extends RoomDatabase {
    public abstract ReaderDAO readerDAO();

    public abstract BookDAO bookDAO();

    public abstract BorrowDAO borrowDAO();

}
